package ebuy.com.springbooteubuy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"ebuy.com.*"})
@MapperScan("ebuy.com.dao")
@EnableTransactionManagement(proxyTargetClass = true)//事务启动的时候加入   启动类位置不在同级包下
public class SpringbooteubuyApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbooteubuyApplication.class, args);
    }

}
